package 补充.输入输出操作.字符流;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;

public class 字符流操作读取文件 {
    public static void main(String[] args) throws IOException {
        File file = new File("D:\\Learn\\javademo\\untitled\\src\\补充_偏\\输入输出操作\\read.txt");
        FileReader fr=new FileReader(file);
        int len ;
        while ((len=fr.read())!=-1){
            System.out.print((char)len);
        }
        fr.close();
    }
}
